﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ShowBusTicket.ascx.cs" Inherits="WebControl_ShowBusTicket" %>
<h2>Customer Settings</h2> 

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    <div style="width:950px">
        <a style="margin:0em 0em 0em 0.5em;">CustomerName:</a><a style="margin:5em 0em 0em 0.5em;"><asp:TextBox ID="txtcustomerName" runat="server" Width="100px"></asp:TextBox></a>
        <a style="margin:0em 0em 0em 0.5em;">Status:</a><a style="margin:0em 0em 0em 0.5em;"><asp:DropDownList
        ID="DropDownList1" runat="server">
             <asp:ListItem>----</asp:ListItem>
            <asp:ListItem>ok</asp:ListItem>
            <asp:ListItem>notok</asp:ListItem>
        </asp:DropDownList>
        </a>
        <asp:Button ID="btnsearch" runat="server" Text="Search" 
            onclick="btnsearch_Click" />
        <asp:Label ID="lblnull" runat="server" Text="Not Found The Value" 
            BorderColor="#CC0000" ForeColor="#CC0000" Visible="False"></asp:Label>
    </div>     
    <table id="rounded-corner" style="margin:1em 0em 0em 0em;">
        <tr>
        	<th scope="col" class="rounded-company"></th>
            <th scope="col" class="rounded">CustomerName</th>
            <th scope="col" class="rounded">IndentityCard</th>
            <th scope="col" class="rounded">EmloyeeName</th>
            <th scope="col" class="rounded">Amount</th>
            <th scope="col" class="rounded">Status</th>
            <th scope="col" class="rounded">View</th>
            <th scope="col" class="rounded">Edit</th>
            <th scope="col" class="rounded-q4">Delete</th>
        </tr>

<asp:ListView ID="ListView1" runat="server" ItemPlaceholderID="IdCustomer" DataKeyNames="IdCustomer">
    <ItemTemplate>
        <tr>
        	<td><input type="checkbox" name="IDBusTicket" value="<%# Eval("IDBusTicket") %>"/></td>
            <td><%# Eval("fullNameCustomer")%></td>
            <td><%# Eval("IndentityCard")%></td>
            <td><%# Eval("fullNameEmloyee")%></td>
            <td><%# Eval("busticketAmount")%></td>            
            <td><%# Eval("busticketStatus")%></td>
            
            <td><a href="ShowBusTicketDetail_Admin.aspx?IDBusTicket=<%# Eval("IDBusTicket") %>"><img src="../Images/user_edit.png" alt="" title="" border="0" /></a></td>
            <td><a href="UpdateShowBusticket.aspx?idbus=<%# Eval("IDBusTicket") %> &amount=<%# Eval("busticketAmount") %> &status=<%# Eval("busticketStatus") %>"><img src="../Images/user_edit.png" alt="" title="" border="0" /></a></td>
            <td><a href="DeleteBusticket.aspx?idbusticket=<%# Eval("IDBusTicket") %>" class="ask"><img src="../Images/trash.png" alt="" title="" border="0" /></a></td>
        </tr>
    </ItemTemplate>
    <LayoutTemplate>
        <asp:PlaceHolder runat="server" ID="IdCustomer"></asp:PlaceHolder>
    </LayoutTemplate>
</asp:ListView> 
</table>
	 <a href="#" class="bt_green" style="float:left"><span class="bt_green_lft"></span><strong>Add new item</strong><span class="bt_green_r"></span></a>    
     <a href="#" class="bt_red" style="float:left"><span class="bt_red_lft"></span><strong>Delete All</strong><span class="bt_red_r"></span></a> 
     
     <div class="pagination">
         <asp:DataPager ID="DataPagerForAlbums" runat="server" PagedControlID="ListView1" PageSize="5">
                <Fields>
                    <asp:NextPreviousPagerField ShowFirstPageButton="True" FirstPageText="&laquo prev" ShowNextPageButton="False"  ShowPreviousPageButton="false" />
                    <asp:NumericPagerField />
                    <asp:NextPreviousPagerField ShowLastPageButton="True" LastPageText="&raquo next" ShowPreviousPageButton="False"  ShowNextPageButton="false" />
                </Fields>
         </asp:DataPager>
     </div>
        
        </p>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="DataPagerForAlbums" />
    </Triggers>
</asp:UpdatePanel> 

